export enum DeliveryOrderState {
  WAITING_FOR_ORDER = 1, // 待骑手接单
  ORDER_ACCEPTED = 2, // 骑手已接单
  RIDER_AT_STORE = 3, // 骑手已到店
  ORDER_PICKED = 4, // 骑手已取餐
  DELIVERED_TO_USER = 5 // 已交付给用户
}
export function deliveryOrderStateLabelOf(value: number): string {
  if (value === DeliveryOrderState.WAITING_FOR_ORDER) return '待骑手接单'
  if (value === DeliveryOrderState.ORDER_ACCEPTED) return '骑手已接单'
  if (value === DeliveryOrderState.RIDER_AT_STORE) return '骑手已到店'
  if (value === DeliveryOrderState.ORDER_PICKED) return '骑手已取餐'
  if (value === DeliveryOrderState.DELIVERED_TO_USER) return '已完成交付'
  return ''
}
